<!DOCTYPE html>
<html lang="cn" xmlns:th="http://www.thymeleaf.com">
<head>
    <meta charset="UTF-8">
    <title>互联网村镇管理平台</title>
    <link rel="stylesheet" type="text/css" th:href="@{/css/common.css}" />
    <link rel="stylesheet" type="text/css" th:href="@{/css/main.css}" />
</head>
<body>
    <div class="container clearfix">
        <!--/sidebar-->
        <div class="main-wrap">
            <div class="crumb-wrap">
                <div class="crumb-list">
                    <i class="icon-font">&#xe926;</i>
                    <a href="javascript:void(0);">信息发布</a>
                    <span class="crumb-step">&gt;</span>
                    <span class="crumb-name">购销信息</span>
                </div>
            </div>
            <div class="search-wrap">
                <div class="search-content">
                    <form th:action="@{/information/list}" method="post" id="queryForm">
                        <table class="search-tab" style="margin-left: 10px;">
                            <tr>
                                <th width="70">信息标题:</th>
                                <td>
                                    <input class="common-text" placeholder="信息标题" name="title" th:value="${title}" type="text" />
                                </td>
                                <td>
                                    <input class="btn btn-primary btn2" name="sub" value="查询" type="submit">
                                </td>
                            </tr>
                        </table>
                    </form>
                </div>
            </div>
            <div class="result-wrap">
                <div class="result-title" th:if="${status == 2}">
                    <div class="result-list">
                        <a th:href="@{/information/gotoAddPage}"><i class="icon-font">&#xea0a;</i>新增信息</a>
                        <a id="batchDel" href="javascript:batchDeleteInformation();"><i class="icon-font">&#xe9ac;</i>批量删除</a>
                    </div>
                </div>
                <div class="result-content">
                    <table class="result-tab" width="100%">
                        <tr>
                            <th class="tc" width="5%"><input class="allChoose" onclick="javascript:shiro.form.setCheckBoxSelectToggle('informationIdCheckBox');" type="checkbox" /></th>
                            <th width="20%">信息标题</th>
                            <th width="25%">信息简介</th>
                            <th width="25%">信息内容</th>
                            <th width="15%">发布时间</th>
                           <!-- <th>更新时间</th>-->
                            <th class="tc" width="10%">操作</th>
                        </tr>
                        <tr th:each="information:${informationList}">
                            <td class="tc">
                                <input name="informationIdCheckBox" th:value="${information?.informationId }" type="checkbox" />
                            </td>
                            <td th:text="${information?.title }"></td>
                            <td th:text="${information?.desc }"></td>
                            <td th:text="${information?.content }"></td>
                            <td th:text="${#dates.format(information?.createTime,'yyyy-MM-dd HH:mm:ss')}"></td>
                            <!--<td th:text="${#dates.format(information?.updateTime,'yyyy-MM-dd HH:mm:ss')}"></td>-->
                            <td class="tc" th:if="${information?.status==2}">
                                <a class="link-update" th:href="@{'/information/gotoEditPage/' + ${information?.informationId}}"><i class="icon-font">修改</i></a>
                                <a class="link-del" th:href="'javascript:deleteInformation(\'' + ${information?.informationId } + '\');'"><i class="icon-font">删除</i></a>
                            </td>
                            <td class="tc" th:if="${information?.status==1}">
                                <a class="link-update" th:href="'javascript:adoptInformation(\'' + ${information?.informationId } + '\');'"><i class="icon-font">通过</i></a>
                                <a class="link-del" th:href="'javascript:rejectInformation(\'' + ${information?.informationId } + '\');'"><i class="icon-font">驳回</i></a>
                            </td>
                            <td class="tc" th:if="${information?.status==3}">
                                <a class="link-update" th:href="'javascript:viewInformation(\'' + ${information?.informationId } + '\');'"><i class="icon-font">查看</i></a>
                                <a class="link-del" th:href="'javascript:deleteInformation(\'' + ${information?.informationId } + '\');'"><i class="icon-font">删除</i></a>
                            </td>
                        </tr>
                    </table>
                </div>
                <div class="list-page" th:utext="${pageHtml}">
                </div>
            </div>
        </div>
    </div>
    <div th:include="admin/common/common"></div>
    <script type="text/javascript" th:src="@{/js/web/information/information.js?v=1.1}"></script>
</body>
</html>